home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / jump_gam.swf / scripts / frame_172 / DoAction_5.as < prev    next >
Encoding:
Text File  |  2010-04-12  |  544 b   |  22 lines

  1. jshadow.edgeBuff = 88;
  2. jshadow.maxHeight = 250;
  3. jshadow.scaleShadow = function()
  4. {
  5.    var _loc1_ = this;
  6.    myScalePercent = jumper.getY() / _loc1_.maxHeight;
  7.    myScaleFactor = 100 - myScalePercent * 50;
  8.    _loc1_._alpha = 75 - myScalePercent * 50;
  9.    _loc1_.changeScale(myScaleFactor);
  10. };
  11. jshadow.changeScale = function(newScale)
  12. {
  13.    this._xscale = newScale;
  14.    this._yscale = newScale;
  15. };
  16. jshadow.onEnterFrame = function()
  17. {
  18.    var _loc1_ = this;
  19.    _loc1_._x = jumper._x + _loc1_.edgeBuff;
  20.    _loc1_.scaleShadow();
  21. };
  22.